from django.contrib.auth.models import Permission, ContentType, Group

from rest_framework import serializers


class GroupSerializer(serializers.ModelSerializer):
    class Meta:
        # 指定生成序列化字段的模型类
        model = Group
        # 指定字段
        fields = "__all__"

